package com.expressage.service.impl;

import com.expressage.dao.CheckRecordDao;
import com.expressage.po.CheckRecord;
import com.expressage.service.CheckRecordService;
import com.expressage.vo.CheckrecordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CheckRecordServiceImpl implements CheckRecordService {
    @Autowired
    CheckRecordDao checkRecordDao;
    @Override
    public List<CheckrecordVo> findAll() {
        return checkRecordDao.findAll();
    }

    @Override
    public CheckRecord findByid(int checkid) {
        return checkRecordDao.findByid(checkid);
    }

    @Override
    public boolean delete(int[] array) {
        return checkRecordDao.delete(array)>0?true:false;
    }

    @Override
    public boolean add(CheckRecord check) {
        return checkRecordDao.add(check)>0?true:false;
    }

    @Override
    public boolean update(CheckRecord check) {
        return checkRecordDao.update(check)>0?true:false;
    }

    @Override
    public CheckRecord findByCheck(int staffid) {
        return checkRecordDao.findByCheck(staffid);
    }
}


